public class PlayerStateBehavior_CallBall : AbstractPlayerStateBehavior
{
	public static PlayerStateBehavior_CallBall instance;

	private PlayerStateBehavior_CallBall()
	{
	}

	public static PlayerStateBehavior_CallBall getInstance()
	{
		if (instance == null)
		{
			instance = new PlayerStateBehavior_CallBall();
		}
		return instance;
	}

	public override void enter(Player owner)
	{
		base.enter(owner);
		if (owner.team.IsAnyOneControlBall())
		{
			owner.LookAt(owner.team.getPlayer_ControlBall().getPosition());
		}
		owner.playAnimation(AnimationName.player_callball, 1f, 0.8f);
	}

	public override void fixedUpdate(Player owner)
	{
		base.fixedUpdate(owner);
		if (!owner.IsPlayingAnimation())
		{
			owner.do_idle();
		}
	}
}
